package park.manage;

import java.util.Objects;

public class User {
        private String name;
        private String passWord;
        public User(String name, String passWord){
            this.name=name;
            this.passWord=passWord;
        }

    public String getName() {
        return name;
    }

    public String getPassWord() {
        return passWord;
    }
    public String toString(){
            return name+","+passWord;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof User user)) return false;
        return Objects.equals(name, user.name) && Objects.equals(passWord, user.passWord);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, passWord);
    }
}
